package com.nuaa.community;

import com.nuaa.community.controller.LoginController;
import jakarta.annotation.PostConstruct;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.ComponentScan;

@SpringBootApplication

public class CommunityApplication {

	private static final Logger logger = LoggerFactory.getLogger(LoginController.class);

	@PostConstruct
	public void init() {
		// 解决netty启动冲突问题
		// see Netty4Utils
		System.setProperty("es.set.netty.runtime.available.processors", "false");
	}
	public static void main(String[] args) {
		SpringApplication.run(CommunityApplication.class, args);
		logger.info("服务器已启动");
	}

}
